package com.shoesmail.controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.shoesmail.domain.dto.ShoesListDto;
import com.shoesmail.domain.vo.JsonResultVo;
import com.shoesmail.domain.vo.PageResult;
import com.shoesmail.domain.vo.user.UserShoesVo;
import com.shoesmail.mapper.ShoeMapper;
import com.shoesmail.service.UserShoesService;
import com.shoesmail.utils.PhotoUtil;
import com.shoesmail.utils.UserContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ：CDB
 * @description：鞋子相关
 * @date ：2025/9/19 9:40
 */
@RestController
@RequestMapping("/user/shoes")
public class UserShoesController {


    @Autowired
   private UserShoesService userShoesService;

    @GetMapping("/getList")
    public JsonResultVo<PageResult<UserShoesVo>> getShoesList(@RequestParam("pageOrder") int pageOrder, @RequestParam("pageNum") int pageNum){
        return userShoesService.getShoesList(pageOrder,pageNum);

    }
}








